package com.chahu.common;


public enum AppExceptionCodeMsg {
    INVLID_CODE(10000, "验证码无效"),

    USERNAME_NOT_EXISTS(10001, "用户名不存在"),

    USERNAME_PASSWORD_IS_NULL(10002, "用户名或密码为空"),

    REGISTER_ERROR(10003, "注册失败"),

    INSUFFICIENT_PRIVILEGE(10004, "权限不足"),

    INSERT_FAILED(10005, "添加失败"),

    GET_FAILED(10006, "获取失败"),

    UPDATE_FAILED(10007, "更新失败"),

    DELETE_FAILED(10008, "删除失败"),

    UPLOAD_FAILED(10009, "上传失败"),

    DOWNLOAD_FAILED(10010, "下载失败"),

    INSUFFICIENT_VOTES(10011, "票已售完"),

    LOGIN_FAILED(10012, "登陆失败"),

    ACCOUNT_EXIST(10013, "账号已存在")
    ;

    private int code;
    private String msg;

    public int getCode(){
        return code;
    }

    public String getMsg(){
        return msg;
    }

    AppExceptionCodeMsg(int code, String msg){
        this.code = code;
        this.msg=msg;
    }
}
